<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
     <title>主页</title>
    <style>
        *{
            margin: 0 auto;
            padding: 0;

        }
        table,p{
            margin-top: 20px;
            font-style: italic;
        }

        table{
            background-color: aqua;
            width: 400px;
            line-height: 50px;

        }
        tr,td{
            height: 20px;
            border: 2px solid red;
            text-align: center;
            border-radius: 5px;

        }
        p{
            text-indent: 3em;
            width: 200px;
            background-color: #ab81c8;
            border-radius: 5px;

        }
    </style>
</head>

<body>
    <p>欢迎您!&emsp;<span style="color: #105f10">${sessionScope.logUser.getReal_name()}</span></p>
    <table>
        <tr>
            <td>编号</td>
            <td>书名</td>
            <td>类型</td>
            <td>作者</td>
        </tr>
        <c:forEach items="${requestScope.books}" var="book">
        <tr>
            <td>${book.book_id}</td>
            <td> ${book.book_name}</td>
            <td>  ${book.book_type}</td>
            <td> ${book.book_author}</td>
        </tr>
      </c:forEach>
    </table>
</body>
</html>
